package com.li.hibenate.pojo;

/**
 * AbstractNotesId entity provides the base persistence definition of the
 * NotesId entity. @author MyEclipse Persistence Tools
 */

public abstract class AbstractNotesId implements java.io.Serializable {

	// Fields

	private Integer nid;
	private Integer nsid;

	// Constructors

	/** default constructor */
	public AbstractNotesId() {
	}

	/** full constructor */
	public AbstractNotesId(Integer nid, Integer nsid) {
		this.nid = nid;
		this.nsid = nsid;
	}

	// Property accessors

	public Integer getNid() {
		return this.nid;
	}

	public void setNid(Integer nid) {
		this.nid = nid;
	}

	public Integer getNsid() {
		return this.nsid;
	}

	public void setNsid(Integer nsid) {
		this.nsid = nsid;
	}

	public boolean equals(Object other) {
		if ((this == other))
			return true;
		if ((other == null))
			return false;
		if (!(other instanceof AbstractNotesId))
			return false;
		AbstractNotesId castOther = (AbstractNotesId) other;

		return ((this.getNid() == castOther.getNid()) || (this.getNid() != null
				&& castOther.getNid() != null && this.getNid().equals(
				castOther.getNid())))
				&& ((this.getNsid() == castOther.getNsid()) || (this.getNsid() != null
						&& castOther.getNsid() != null && this.getNsid()
						.equals(castOther.getNsid())));
	}

	public int hashCode() {
		int result = 17;

		result = 37 * result
				+ (getNid() == null ? 0 : this.getNid().hashCode());
		result = 37 * result
				+ (getNsid() == null ? 0 : this.getNsid().hashCode());
		return result;
	}

}